package com.qinsoft.business.task.bean;

import java.util.Date;


public class Task
{
    private Long taskId;            //任务ID
    private String taskType;        //任务类型(sale：自动上架、recom：自动橱窗、log：清除日志、user：清除用户);
    private String params;          //自定义参数
    private Integer startPosition;  //任务执行的开始位置
    private Integer nowPosition;    //任务执行到的当前位置
    private Integer endPosition;    //任务执行的结束位置
    private Date createTime;        //记录创建时间
    
    public Task()
    {
        super();
    }

    public Task(String taskType, Integer startPosition, Integer nowPosition, Integer endPosition)
    {
        super();
        this.taskType = taskType;
        this.startPosition = startPosition;
        this.nowPosition = nowPosition;
        this.endPosition = endPosition;
    }

    public Long getTaskId()
    {
        return taskId;
    }
    
    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }
    
    public String getTaskType()
    {
        return taskType;
    }
    
    public void setTaskType(String taskType)
    {
        this.taskType = taskType;
    }
    
    public String getParams()
    {
        return params;
    }
    
    public void setParams(String params)
    {
        this.params = params;
    }
    
    public Integer getStartPosition()
    {
        return startPosition;
    }
    
    public void setStartPosition(Integer startPosition)
    {
        this.startPosition = startPosition;
    }
    
    public Integer getNowPosition()
    {
        return nowPosition;
    }
    
    public void setNowPosition(Integer nowPosition)
    {
        this.nowPosition = nowPosition;
    }
    
    public Integer getEndPosition()
    {
        return endPosition;
    }
    
    public void setEndPosition(Integer endPosition)
    {
        this.endPosition = endPosition;
    }
    
    public Date getCreateTime()
    {
        return createTime;
    }
    
    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }
}
